import request from '@/utils/http'
// import qs from 'qs'

export function dict (params) {
  return request({
    url: '/commonDataInfo/dict',
    method: 'GET',
    params
  })
}

// 分页查询
export function alarmDataInfoList (params) {
  return request({
    url: '/alarmdatainfo/alarmDataInfoList',
    method: 'POST',
    data: params,
    headers: {
      'Content-Type': 'application/json' // 设置为JSON格式
    }
  })
}
// 查看单条警报信息详情
export function getAlarmData (params) {
  return request({
    url: '/alarmdatainfo/getAlarmData',
    method: 'GET',
    params
  })
}
